import sys
from lex.tokenizer import generate_tokens
from grammy.grammar import FILE_INPUT

def check(infile):
    f = open(infile, 'rb')
    tokens = list(generate_tokens(f.readline))
    f.close()
    valid = FILE_INPUT(tokens)
    if not valid:
        return False
    return FILE_INPUT.code

if __name__ == 'main':
    print 'main'
